import * as THREE from 'three'

export interface THREEModelType {
    camera: THREE.PerspectiveCamera|THREE.OrthographicCamera
    scene: THREE.Scene
    render: THREE.WebGLRenderer
}

function destroyTHREEModel ({ camera, scene, render }: THREEModelType) {
  camera.clear()
  scene.clear()
  render.dispose()
}

export {
  destroyTHREEModel
}
